#pragma once
#include "afxwin.h"
#include "atltypes.h"
class XTREMEFRAMEPRODLLEXPORT CXtremChildFrame :
	public CMDIChildWnd, CXTPOffice2007FrameHook
{
public:
	CXtremChildFrame(void);
	virtual ~CXtremChildFrame(void);
	DECLARE_MESSAGE_MAP()
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	
	virtual bool CreateRibbonBar(void);
	virtual bool CreateStatusBar(void);
	virtual void LoadIcons();
public:
	// SetInitRect
	void SetInitRect(const CRect & rect);
	CXTPRibbonTab* GetRibbonTab();
	CXTPRibbonBar* GetRibbonBar();
protected:
	CRect m_MdiClientRect;
	CXTPRibbonTab* pTabControl;
	CXTPRibbonBar* pRibbonBar;
public:
//	afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
//	afx_msg void OnClose();
	virtual int UpdateRibbonTab();
	virtual void ActivateFrame(int nCmdShow = -1);
};

